<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>详情</title>

    <link rel="stylesheet" href="/movie/web/Public/html/jquery-weui/lib/weui.min.css">
    <link rel="stylesheet" href="/movie/web/Public/html/jquery-weui/css/jquery-weui.css">

    <link rel="stylesheet" href="/movie/web/Public/html/bootstrap/css/bootstrap.min.css">

    <script src="/movie/web/Public/html/jquery-weui/lib/jquery-2.1.4.js"></script>
    <script src="/movie/web/Public/html/jquery-weui/js/jquery-weui.js"></script>

    <script src="/movie/web/Public/html/jquery-weui/js/swiper.js"></script>

<style>
    .weui_cell {
        background: #CCCDCF;
    }
    .weui_cell:before {
        content: " ";
        position: absolute;
        left: 0;
        right: 0;
        width: auto;
    }
    .movie_point {
        color: red;
    }
    .btn {
        width: 100%;
        height: 50px;
    }
</style>
</head>
<body>

    <?php if(is_array($list)): foreach($list as $key=>$val): ?><div class="weui_cell">
        <div class="weui_cell_hd">
            <img style="width: 100px;height:130px;" src="/movie/web<?php echo ($val['cover']); ?>">
        </div>
        <div class="weui_cell_bd weui_cell_primary">
            <p class="movie-name"><?php echo ($val['name']); ?></p>
            <p class="movie_point"><?php echo ($val['score']); ?></p>
            <p class="movie-summary"><?php echo ($val['actore']); ?></p>
            <p class="movie-description">上映时间:<?php echo ($val['release_at']); ?>|电影时长:<?php echo ($val['long']); ?>分钟</p>
        </div>
    </div>
    <div>
        <div><?php echo ($val['description']); ?></div>
    </div>

    <div class="weui_opr_area">
        <p class="weui_btn_area">
            <a href="<?php echo U('Cinemal/index',['time'=>date('md'),'id'=>$val['id']]);?>" class="weui_btn weui_btn_primary">立即购买</a>
        </p>
    </div><?php endforeach; endif; ?>
</body>
</html>